package com.weipt;

/**
 * @author peter.wei 2020/08/31 16:37
 * @version 1.0
 * @company CBI
 * @description <br>peter.wei 2020/08/31 16:37
 **/
public class Test {

    public static void main(String[] args) {
        Single1 single11 = Single1.getSingle1();
        Single1 single12 = Single1.getSingle1();
        System.out.println(single11 == single12);


        Single2 single2 = Single2.getSingle2();

        Single3 single31 = Single3.getSingle3();
        Single3 single32 = Single3.getSingle3();
        System.out.println(single31 == single32);

        Single4 single41 = Single4.getSingle4();
        Single4 single42 = Single4.getSingle4();
        System.out.println(single41 == single42);

        Single5.instance.getInstance();
    }
}